<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--<meta http-equiv="Content-Type" content="multipart/form-data; charset=utf-8" />-->
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../ht-css/Project.css"/>
    <link rel="stylesheet" href="../../ht-css/replaceAddress/addAddress.css">
    <!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css"/>
    <title>运费管理（按金额）</title>
    <style>
        .moneyWay:hover{background-color:#d3d3d3;display: inline-block;cursor: pointer;border-radius:10px;}

        #beijing{
            z-index:1;
            width:100%;
            height:100%;
            position: absolute;
            left:0;
            top:0;
            background-color: #000;
            opacity:0.3;
            display: none;
        }
        #myLoading{
            position: fixed;
            top: 50%;
            left: 50%;
            margin-top:-62px;
            transform: translateX(-50%) translateY(-50%);
            z-index:2;
            display: none;
        }
    </style>

</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span> 运费管理<span class="c-gray en">&gt;</span>按金额 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="coupon-add">
        <div>
            <div class="bg-1 bk-gray pd-20 mb-20">
                <div class="va-m lh-20 f-16 pb-15">
                    <strong>基本信息</strong>
                </div>
                <div class="line"></div>
                <table class="table-hover mb-10 mt-10 table">
                    <thead class="text-l">
                    <tr>
                        <td class="col-2-1">
                            <div class="row">
                                <label class="form-label f-l w-75 text-r lh-26"><em>*</em>模板名称：</label>
                                <div class="formControls f-l" style="width:28%;">
                                    <input type="text" id="templateName" class="input-text radius ml-10" placeholder="最多可输入30字">
                                </div>
                                <span class="Validform_checktip"></span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-2-1">
                            <div class="row">
                                <label class="form-label f-l text-r w-75 lh-26"><em>*</em>发货仓：</label>
                                <select id="dcName"class="select radius ml-10 f-l" style="width:20%;height:30px;" size="1">
                                </select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-2-1">
                            <div class="row">
                                <label class="form-label f-l text-r w-75 lh-26"><em>*</em>计价方式：</label>
                                <div class="formControls f-l ml-10 lh-26">
                                    <span class="mr-40" name="amtWay" hidden><input class="mr-5 checkBox" name="priceWay" id="priceAtMoney" onclick="amtDiv(this,1)" type="checkbox"  value="10"><span class="moneyWay" onclick="amtDiv(this,1)">按金额</span></span>
                                    <span class="mr-40" name="amtWay" hidden><input class="mr-5 checkBox" name="priceWay" id="priceAtWeight" onclick="amtDiv(this,2) "type="checkbox"  value="20"><span class="moneyWay" onclick="amtDiv(this,2)">按重量</span></span>
                                    <span class="mr-40" name="amtWay" hidden><input class="mr-5 checkBox" name="priceWay" id="priceAtVolumeWeight" onclick="amtDiv(this,4) "type="checkbox"  value="40"><span class="moneyWay" onclick="amtDiv(this,4)">按体积/重量</span></span>
                                    <span class="mr-40" name="amtWay" hidden><input class="mr-5 checkBox" name="priceWay" id="priceAtCar" onclick="amtDiv(this,3)" type="checkbox" value="30"><span class="moneyWay" onclick="amtDiv(this,3)" >按车型</span></span>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-2-1" colspan="2">
                            <div class="row">
                                <label class="form-label f-l w-75 text-r lh-26"><em>*</em>运送方式：</label>
                                <div class="formControls f-l ml-10 lh-26">
                                    除指定区外，其余地区的运费采用“默认运费”。
                                </div>
                                <span class="Validform_checktip"></span>
                            </div>
                        </td>
                    </tr>
                    </thead>
                </table>

                <div id="amtWay">
                    <ul style="margin-left:80px;">
                        <li>
                            <div>
                                <div><input class="mr-5 radio" type="radio" checked="checked" name="logisticsamt">自有物流</div>
                                <p class="ml-15 mt-10"><input class="mr-5 checkBox" name="xfsLogistics" type="checkbox" value="40" checked="checked">鑫方盛物流<span class="f-r"><a onclick="serchRange1(40)">配送范围查看</a></span></p>
                            </div>
                            <div id="tab_topnav" class="HuiTab">
                                <div class="tabBar clearfix" >
                                    <span>默认运费</span>
                                    <!--<span>指定区域</span>-->
                                </div>
                                <!--默认运费-->
                                <div class="tabCon bg-1 bk-gray pb-10">
                                    <div class="lh-20 pd-10">
                                        <span class="il-b lh-28">默认运费：</span><input name="amtName" maxlength="9" type="text" id="costAmt" class="w-60 input-text radius mr-5" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)"><span class="il-b lh-28">元及以上，运费：</span>
                                        <input name="amtName" maxlength="9" type="text" id="costPrice" class="w-60 input-text radius mr-5" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)"><span class="il-b lh-28">元</span>
                                        <span class="f-r mr-10"><input  onclick="DataInUp()" type="button" class="btn btn-secondary radius size-S" value="增&nbsp;&nbsp;加"></span>
                                    </div>
                                    <table class="table table-border table-bg table-hover table-sort mt-5" id="amtTableUp">
                                        <thead>
                                        <tr class="text-c">
                                            <th>金额（元）</th>
                                            <th>基础运费（元）</th>
                                            <th>特殊商品附加运费</th>
                                            <th class="w-200">操作</th>
                                        </tr>
                                        </thead>
                                        <tbody class="shun" id="amtTableBody">
                                        </tbody>
                                    </table>
                                    <table class="table table-border table-bg table-hover table-sort mt-20" type="hide" id="goodsAmt">
                                        <thead>
                                        <tr class="text-c">
                                            <th>品类</th>
                                            <th>附加运费</th>
                                            <th>操作</th>
                                        </tr>
                                        <tbody class="shun" id="amtTableDown">

                                        </tbody>
                                    </table>
                                    <div class="mt-10 ml-10" hidden><a>为指定地区设置运费</a></div>
                                </div>
                                <!--指定区域-->
                                <div class="tabCon pd-5 bg-1 bk-gray pb-10">
                                    <tr>
                                        <td class="pos-r">未添加特殊商品<a class="pos-a r-10" onclick="amount_add()">添加</a></td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                </div>
                            </div>
                        </li>
                        <!--<li class="mt-20">
                            <div>
                                <span><input class="mr-5 radio" type="radio" name="logistics">第三方物流</span><br>
                                <p class="ml-15 mt-10"><input class="mr-5 checkBox" type="checkbox" value="1">快递</p>
                                <p class="ml-15"><input class="mr-5 checkBox" type="checkbox" value="1">快运</p>
                                <p class="ml-15"><input class="mr-5 checkBox" type="checkbox" value="1">专车包车</p>

                            </div>
                        </li>-->
                    </ul>
                </div>
                <div id="carWay">
                    <ul style="margin-left:80px;">
                        <!--<li>
                            <div><input class="mr-5 radio" type="radio" name="logistics">自有物流</div>
                        </li>-->
                        <li class="mt-10">
                            <div>
                                <span><input class="mr-5 radio" type="radio" name="logisticsCar" checked="checked">第三方物流</span><br>
                                <!--<p class="ml-15 mt-10"><input class="mr-5 checkBox" type="checkbox" value="0">快递</p>
                                <p class="ml-15 mt-10"><input class="mr-5 checkBox" type="checkbox" value="1">快运</p>-->
                                <p class="ml-15"><input class="mr-5 checkBox" type="checkbox" name="chartered" value="30"  checked="checked">专车包车<span class="f-r"><a onclick="serchRange1(30)">覆盖范围查看</a></span></p>
                                <div class="bg-1 bk-gray pb-10">
                                    <div class="lh-20 pd-10">
                                        <span class="il-b lh-28">默认运费&nbsp;&nbsp;车长</span>
                                        <input type="text" maxlength="9" id="carLong"  class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">米，最大载重量</span>
                                        <input type="text" maxlength="9" id="carWeight"  class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">kg以内，最大承运体积</span>
                                        <input type="text" maxlength="9" id="carMaxVolume"  onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}.\d{1,}|\d{1,}]/g,'');}).call(this)" onblur="this.v();" class="w-60 input-text radius mr-5 ml-5 text-c">
                                        <span class="il-b lh-28">m³，运费</span>
                                        <input type="text" maxlength="9" id="carAmt"  class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">元，时效</span>
                                        <input type="text" maxlength="9" id="carDate" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">天</span>
                                        <a class="f-r" onclick="dataInUpCar()">增加</a>
                                    </div>
                                    <table class="table table-border table-bg table-hover table-sort mt-5">
                                        <thead>
                                        <tr class="text-c">
                                            <th>车长（m）</th>
                                            <th>最大载重量（kg）</th>
                                            <th>最大承运体积（m³）</th>
                                            <th>运费（元）</th>
                                            <th>时效（天）</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody class="shun" id="carTableUp">

                                        </tbody>
                                    </table>

                                    <div class="ml-10 mt-10 mb-10"><a onclick="carByArea()">为指定地区设置运费</a></div>
                                    <table class="table table-border table-bg table-hover table-sort mt-5" id="datatable">
                                        <thead>
                                        <tr class="text-c">
                                            <th>发货仓</th>
                                            <th style="width: 180px">运送到</th>
                                            <th>车长（m）</th>
                                            <th>最大载重量（kg）</th>
                                            <th>最大承运体积（m³）</th>
                                            <th>运费（元）</th>
                                            <th>时效（天）</th>
                                            <th>操作</th>
                                        </tr>
                                        <tbody class="shun" id="carTableDown">
                                        </tbody>

                                    </table>
                                    <div id="carValue"></div>
                                    <!--分页显示-->
                                    <div class="mt-40"></div>
                                    <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                                        <div class="f-r pageturning M-box3"></div>
                                    </div>

                                </div>
                            </div>
                        </li>
                    </ul>
                </div>

                <div id="weightWay">
                    <ul style="margin-left:80px;">
                        <!--<li>
                            <div><input class="mr-5 radio" type="radio" name="logistics">自有物流</div>
                        </li>-->
                        <li class="mt-10">
                            <div>
                                <span><input class="mr-5 radio" type="radio" checked="checked" name="logisticsWeight">第三方物流</span><br>
                                <p class="ml-15 mt-10"><span name="expressCheck" hidden><input class="mr-5 checkBox" type="checkBox" checked="checked" value="10" name="express" onclick="expressClick(1)" ><span class="moneyWay">快递</span></span></p>
                                <div class="bg-1 bk-gray pb-10" id="kuaidi">
                                    <span class="f-r"><a onclick="serchRange1(10)">覆盖范围查看</a></span>
                                    <div class="lh-20 pd-10">
                                        <span class="il-b lh-28">快递默认运费</span>
                                        <input type="text"  maxlength="9" id="firstWeight" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">kg以内</span>
                                        <input type="text" maxlength="9" id="firstPrice" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">元，每增加</span>
                                        <input type="text" maxlength="9" id="weightAdd" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">kg，运费增加</span>
                                        <input type="text" maxlength="9" id="priceAdd" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">元，时效</span>
                                        <input type="text" maxlength="9" id="time" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">天</span>
                                    </div>
                                    <div class="ml-10"><a onclick="weightByArea(1)">为指定地区设置运费</a></div>
                                    <table class="table table-border table-bg table-hover table-sort mt-5" id="datatableWeight">
                                        <thead>
                                        <tr class="text-c">
                                            <th>发货仓</th>
                                            <th>运送到</th>
                                            <th>首重量（KG）</th>
                                            <th>首费（元）</th>
                                            <th>续重量（KG）</th>
                                            <th>续费（元）</th>
                                            <th>时效</th>
                                            <th>操作</th>
                                        </tr>
                                        <tbody class="shun" id="weightTableDown">
                                        </tbody>
                                    </table>
                                    <div id="weightValue"></div>
                                    <!--分页显示-->
                                    <div class="mt-40"></div>
                                    <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                                        <div class="f-r pageturning M-box3"></div>
                                    </div>

                                </div>

                                <!--<p class="ml-15"><input class="mr-5 checkBox" type="checkbox" value="2">专车包车</p>-->

                            </div>
                        </li>
                    </ul>
                </div>

                <!--快运(体积重量)------------------------start-->
                <div id="volumeWeightWay">
                    <ul style="margin-left:80px;">
                        <!--<li>
                            <div><input class="mr-5 radio" type="radio" name="logistics">自有物流</div>
                        </li>-->
                        <li class="mt-10">
                            <div>
                                <span><input class="mr-5 radio" type="radio" checked="checked" name="logisticsVolumeWeight">第三方物流</span><br>
                                <p class="ml-15 mt-10"><span name="expressCheck" hidden><input class="mr-5 checkBox" checked="checked" type="checkBox" name="express2" value="20"><span class="moneyWay" >快运</span></span></p>


                                <div class="bg-1 bk-gray pb-10" id="kuaiyun" hidden>
                                    <span class="f-r"><a onclick="serchRange1(20)">覆盖范围查看</a></span>
                                    <div class="lh-20 pd-10">
                                        <span class="il-b lh-28">默认运费</span>
                                        <span class="il-b lh-28">启运价</span>
                                        <input type="text"  maxlength="9" id="startFreight" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">元,</span>
                                        <input type="text"  maxlength="9" id="yuanCube" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">元/立方,</span>
                                        <input type="text" maxlength="9"  id="yuanKilogram" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">元/千克,</span>
                                        <input type="text"  maxlength="9" id="yuanTon" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">元/吨,</span>
                                        <span class="il-b lh-28">派送费</span>
                                        <input type="text" maxlength="9" id="sendFreight" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">元,</span>
                                        <span class="il-b lh-28">干线时效</span>
                                        <input type="text" maxlength="9" id="trunkLinePrescription" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">天,</span>
                                        <span class="il-b lh-28">派送时效</span>
                                        <input type="text" maxlength="9" id="sendPrescription" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                                        <span class="il-b lh-28">天,</span>

                                    </div>
                                    <div class="ml-10"><a onclick="volumeWeightByArea()">为指定地区设置运费</a></div>
                                    <table class="table table-border table-bg table-hover table-sort mt-5" id="datatableVolumeWeight">
                                        <thead>
                                        <tr class="text-c">
                                            <th>发货仓</th>
                                            <th style="width: 180px">运送到</th>
                                            <th>启运价（元）</th>
                                            <th>元/立方</th>
                                            <th>元/千克</th>
                                            <th>元/吨</th>
                                            <th>派送费</th>
                                            <th>干线时效</th>
                                            <th>派送时效</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody class="shun" id="volumeWeightTableDownYun">
                                        </tbody>
                                    </table>

                                    <div id="volumeWeightValue"></div>
                                    <!--分页显示-->
                                    <div class="mt-40"></div>
                                    <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                                        <div class="f-r pageturning M-box3"></div>
                                    </div>

                                </div>


                                <!--<p class="ml-15"><input class="mr-5 checkBox" type="checkbox" value="2">专车包车</p>-->

                            </div>
                        </li>
                    </ul>
                </div>
                <!--快运(体积重量)------------------------end-->

                <div class="text-c mb-10 mt-40">
                    <input  id="" onclick="saveTemplate()" type="button" class="btn btn-secondary radius size-S" value="保&nbsp;&nbsp;存">
                    <input onclick="close_insert()" name="" type="reset" class="btn radius size-S ml-10" value="取&nbsp;&nbsp;消">
                </div>
            </div>
        </div>
    </form>
    <!----------------------------------------------添加--------------------------------------------------------------->
    <div id="amount-add" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius" style="height:600px;width:800px;left:-35%;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b class="addressTitle">添加商品信息</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <input type="hidden" class="ship_add_id">
                <div class="pop_win pop_receiver"  >
                    <div class="clearfix pt-20 pb-20" style="width:400px;">
                        <div class="class-wp27 f-l" style="width:350px;">
                            <div class="pd-5"><strong>一级分类名称</strong></div>
                            <ul class="bk-gray pt-5 w-300" id="classSet1">

                            </ul>
                        </div>
                    </div>

                </div>
                <div class="text-c pt-30"><a id= "saveOk" onclick="saveChecked()" class="btn btn-secondary radius size-L">确定</a><a onclick="close_model()" class="btn radius size-L ml-10">取消</a></div>            </div>
        </div>
    </div>


    <!----------------------------------------------修改运费中的数据--------------------------------------------------------------->

    <div id="price-update" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius" style="height:600px;width:800px;left:-35%;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b class="addressTitle">修改</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <input type="hidden" class="ship_add_id">
                <div class="pop_win pop_receiver"  >
                    <div class="clearfix pt-20 pb-20" style="width:400px;">
                        <div class="class-wp27 f-l" style="width:350px;">
                            <span class="il-b lh-28">默认运费：</span><input type="text" id="amt"  class="w-60 input-text radius mr-5" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                            <span class="il-b lh-28">元及以上，运费：</span><input type="text" id="price" class="w-60 input-text radius mr-5" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)"><span class="il-b lh-28">元</span>
                        </div>
                    </div>

                </div>
                <div class="text-c pt-30"><a onclick="saveData(1)" class="btn btn-secondary radius size-L">确定</a><a onclick="close_modelPrice()" class="btn radius size-L ml-10">取消</a></div> </div>
        </div>
    </div>


    <!----------------------------------------------修改车型中的数据--------------------------------------------------------------->

    <div id="car-update" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius" style="height:600px;width:800px;left:-35%;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b class="addressTitle">修改</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <input type="hidden" class="ship_add_id">
                <div class="pop_win pop_receiver"  >
                    <div class="clearfix pt-20 pb-20" style="width:400px;">
                        <div class="class-wp27 f-l" style="width:350px;">
                            <span class="il-b lh-28">默认运费&nbsp;&nbsp;车长</span>
                            <input type="text" maxlength="9" id="long"  class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                            <span class="il-b lh-28">米，最大载重量</span>
                            <input type="text" maxlength="9" id="weight"  class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                            <<span class="il-b lh-28">kg以内，最大承运体积</span>
                            <input type="text" maxlength="9" id="maxVolume" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                            <span class="il-b lh-28">m³，运费</span>
                            <input type="text" maxlength="9" id="amtCar" class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                            <span class="il-b lh-28">元，时效</span>
                            <input type="text" maxlength="9" id="date"  class="w-60 input-text radius mr-5 ml-5 text-c" onkeyup="(this.v=function(){this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'');}).call(this)">
                            <span class="il-b lh-28">天</span>
                        </div>
                    </div>

                </div>
                <div class="text-c pt-30"><a onclick="saveData(2)" class="btn btn-secondary radius size-L">确定</a><a onclick="close_modelCar()" class="btn radius size-L ml-10">取消</a></div> </div>
        </div>
    </div>

    <!----------------------------------------------编辑--------------------------------------------------------------->
    <div id="address-edit" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius" style="height:550px;width:750px;top:50px;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b class="addressTitle">新增</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <input type="hidden" class="ship_add_id">

                <div class="clearfix" id="app">
                    <div class="clearfix area mt-40">
                        <label class="replaceorder_lable w4">运送到：</label>
                        <div class="commonArea f-l mr-20">
                            <div class="area_box">
                                <div class="inp_area radius" @click="isAreaShow">
                                    <div class="inp_area_box">
                                    <span id="notVueBox" class="divHide">
                                        <span id="provinceName">请选择收货区域</span>
                                        <span id="cityName"></span>
                                        <span id="countyName"></span>
                                        <span id="villageName"></span>
                                    </span>
                                        <span id="vueBox" class="divHide" style="display: none;">
                                        <span id="vueProvinceName">{{provinceName}}</span>
                                        <span id="vueCityName">{{cityName}}</span>
                                        <span id="vueCountyName">{{countyName}}</span>
                                        <span id="vueVillageName">{{villageName}}</span>
                                        <div style="display: none;">
                                            <span id="provinceId">{{provinceId}}</span>
                                            <span id="cityId">{{cityId}}</span>
                                            <span id="countyId">{{countyId}}</span>
                                            <span id="villageId">{{villageId}}</span>
                                        </div>
                                    </span>

                                    </div>
                                </div>
                                <div v-show="areaShow" class="area_list">
                                    <div class="tab clearfix">
                                        <span style="cursor:pointer;" v-show="areaTab1" :class="{curr: isCurr1}" @click="getArea('101','','','tab')">{{tabArea1}}</span>
                                        <span style="cursor:pointer;" v-show="areaTab2" :class="{curr: isCurr2}" @click="getArea('102',parentCode2,goName2,'tab')">{{tabArea2}}</span>
                                        <span style="cursor:pointer;" v-show="areaTab3" :class="{curr: isCurr3}" @click="getArea('103',parentCode3,goName3,'tab')">{{tabArea3}}</span>
                                        <span style="cursor:pointer;" v-show="areaTab4" :class="{curr: isCurr4}">{{tabArea4}}</span>
                                    </div>
                                    <a @click="closeArea" class="close">关闭</a>
                                    <ul class="list clearfix">
                                        <li v-for="area in areas" style="cursor:pointer;" @click="getArea(area.level,area.code,area.name,'noTab',area.address_id)">
                                            {{area.name}}
                                        </li>

                                    </ul>
                                </div>
                            </div>
                        </div>
                        <!--<div class="low pos-r pl-20">
                            <div class="replaceorder_lable_t"><a href="##">新增收货地址</a></div>
                        </div>-->
                    </div>
                </div>
                <div class="text-c pos-a" style="bottom:30px;left:40%;"><a onclick="saveCity()" class="btn btn-secondary radius size-L">确定</a><a onclick="close_modelweight()" class="btn radius size-L ml-10">取消</a></div>
            </div>
        </div>
    </div>
    <div id="beijing"></div>
    <img id="myLoading" src="../../img/load.gif" height="124" width="124"/>


</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../ht-js/Project.js?rev=@@hash"></script>
<script src="../../ht-js/freight/freightAmount.js?rev=@@hash"></script>
<!--<script type="text/javascript" src="../../ht-js/order/replaceOrder/creatNewOrder.js?rev=@@hash"></script>-->
<script type="text/javascript" src="../../ht-js/vue.min.js?rev=@@hash"></script>

<!--<script type="text/javascript" src="../../ht-js/order/replaceOrder/creatNewOrder.js?rev=@@hash"></script>-->
<!--地址添加js-->
<script type="text/javascript" src="../../ht-js/freight/replaceOrderVue.js?rev=@@hash"></script>

<script src="../../ht-js/freight/freightUpdate.js?rev=@@hash"></script>

<script>
    jQuery.Huitab = function(tabBar, tabCon, class_name, tabEvent, i) {
        var $tab_menu = $(tabBar);
        // 初始化操作
        $tab_menu.removeClass(class_name);
        $(tabBar).eq(i).addClass(class_name);
        $(tabCon).hide();
        $(tabCon).eq(i).show();
        $tab_menu.bind(tabEvent, function() {
            $tab_menu.removeClass(class_name);
            $(this).addClass(class_name);
            var index = $tab_menu.index(this);
            $(tabCon).hide();
            $(tabCon).eq(index).show();
        });
    }

    $(function() {
        $("#goodsAmt").hide();
        $("#saveGoods").hide();
        document.getElementById("carWay").style.display = "none";
        document.getElementById("weightWay").style.display = "none";
        getAllWare2();
        $.Huitab("#tab_topnav .tabBar span", "#tab_topnav .tabCon", "current", "click", "0")
    });

    function close_model() {
        $("#amount-add").modal("hide");
    }
    function amount_add() {
        $("#amount-add").modal("show");
        $(".addressTitle").html("添加商品信息");

    }

    function close_modelPrice(){
        $("#price-update").modal("hide");
    }

    function close_modelCar(){
        $("#car-update").modal("hide");
    }


    function close_modelweight() {
        console.log(app)
        app.initAddress();
        app.province("北京");
        $("#address-edit").modal("hide");
    }




</script>
</body>
</html>